<template>
    <svg :style="iconStyle" :class="svgClass" aria-hidden="true">
        <use :class="iconClass" :xlink:href="symbolId" :fill="color" />
    </svg>
</template>

<script setup>
const props = defineProps({
    name: {
        type: String,
        default: ''
    },
    color: {
        type: String,
        default: ''
    },
    svgClass: {
        type: String,
        default: ''
    },
    iconClass: {
        type: String,
        default: ''
    },
    iconStyle: {
        type: Object,
        default: () => { }
    }
})

const symbolId = computed(() => `#icon-${props.name}`);

</script>


<style scoped>
@import './index.scss';
</style>
